<?php
namespace app\api\validate;

use think\Validate;

class User extends Validate{
    protected $rule =[
        'username' => 'require',
        'phone_number' =>'require',
    ];

    protected $message =[
        'username' => '用户名必须',
        'phone_number' => '电话号码必须',
    ];

    protected $scene =[
        'send_code' =>['phone_number'],
    ];
}